package com.hspedu.homework01;

import java.util.Arrays;

public class Homework03 {
    public static void main(String[] args) {
        String name = "Willian jefferson Clinton";
        String[] names = name.split(" ");
        String name1 = String.format("%s,%s.%c",names[2],names[0],names[1].toUpperCase().charAt(0));
        System.out.println(name1);
    }
}
